package com.bjpowernode.linkedlist;

import java.util.Stack;

/**
 * @author wuyuecai
 * @create 2021-06-03 20:49
 */
public class TestStack {
    public static void main(String[] args) {
        Stack<String> stack = new Stack<>();
        stack.push("tom");
        stack.push("jack");
        stack.push("smith");
        while (stack.size() > 0){
            System.out.println(stack.pop());
        }
    }
}
